<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class CreateFeishuCallingCardsStoriesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('feishu_calling_cards_stories', function (Blueprint $table) {
            $table->increments('id');
            $table->string('coverImg', 255)->default('')->comment('封面图片');
            $table->string('url', 255)->index('url')->default('')->comment('文章url');
            $table->string('title', 120)->default('')->comment('文章标题');
            $table->unsignedInteger('createdAt')->default(0)->comment('创建时间');
            $table->unsignedInteger('updatedAt')->default(0)->comment('修改时间');
            $table->collation = 'utf8mb4_general_ci';
            $table->comment = '加盟名片 - 公众号文章表(加盟故事)';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('feishu_calling_cards_stories');
    }
}
